<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%demand}}".
 *
 * @property integer $id
 * @property string $title
 * @property string $tel
 * @property string $desc
 */
class Demand extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%demand}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['title', 'tel', 'desc'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'tel' => 'Tel',
            'desc' => 'Desc',
        ];
    }
}
